package com.cmccsi.mapper;

import com.cmccsi.entity.qxdeptMemberDto;
import com.cmccsi.entity.qxgroupMemberDto;

import java.util.List;

import org.apache.ibatis.annotations.Param;

public interface qxgroupMemberDtoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(qxgroupMemberDto record);

    int insertSelective(qxgroupMemberDto record);    
    
    List<qxgroupMemberDto> selectByUseridAndGroupId(Long grpId,Long userId);
    
    List<Long> selectMemberIdsByGroupId(Long grpId);  

    qxgroupMemberDto selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(qxgroupMemberDto record);

    int updateByPrimaryKey(qxgroupMemberDto record);
    
    Boolean deleteByGroupidAndMemberids(@Param(value = "groupId") Long grpId, @Param(value = "userIds") Long[] userIds);

    Boolean deleteByMemberids(@Param(value = "userIds") Long[] userIds);
}